//
//  RoundViewController.m
//  oc_demo
//
//  Created by haigui on 2022/10/8.
//

#import "RoundViewController.h"

@interface RoundViewController ()

@end

@implementation RoundViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIView *v1 = [[UIView alloc]initWithFrame:CGRectMake(0, 20, 200, 30)];
    v1.backgroundColor = [UIColor redColor];
    v1.layer.cornerRadius = 15;
    v1.clipsToBounds = YES;
    [self.view addSubview:v1];
    
    UIView *v2 = [[UIView alloc]initWithFrame:CGRectMake(0, 60, 19, 200)];
    v2.backgroundColor = [UIColor redColor];
//    v2.layer.cornerRadius = 9.5;
//    v2.clipsToBounds = YES;
    [v2 setRoundCornersIn:UIRectCornerTopRight|UIRectCornerBottomRight cornerRadii:CGSizeMake(10, 10)];
    [self.view addSubview:v2];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
